﻿namespace MicroCloud.SMS.Events
{
    #region "配置文件更改事件处理器"
    /// <summary>
    /// 配置文件更改事件处理器
    /// </summary>
    public class ConfigurationChangeEventHandler : EventHandlerBase<ConfigurationChangeEventData>
    {
        #region "属性"
        #region "获取 服务提供者"
        /// <summary>
        /// 获取 服务提供者
        /// </summary>
        protected IServiceProvider ServiceProvider { get; }
        #endregion

        #endregion

        #region "构造函数"
        #region "初始化一个消息发送事件处理器的新实例"
        /// <summary>
        /// 初始化一个消息发送事件处理器 <see cref="ConfigurationChangeEventHandler"/> 的新实例
        /// </summary>
        /// <param name="provider">服务提供者</param>
        public ConfigurationChangeEventHandler(IServiceProvider provider)
        {
            ServiceProvider = provider;
        }
        #endregion

        #endregion

        #region "方法"
        #region "事件处理"
        /// <summary>
        /// 事件处理
        /// </summary>
        /// <param name="eventData">事件源数据</param>
        /// <param name="provider">服务提供者</param>
        public override void Handle(ConfigurationChangeEventData eventData, IServiceProvider provider)
        {
            var configuration = eventData.Configuration;
            configuration.GetSmsOptions();
        }
        #endregion

        #endregion

    }
    #endregion

}
